import Vue from 'vue'
import VueRouter from 'vue-router'
import App from './App.vue'
import './cube-ui'
import './register'

import 'common/stylus/index.styl'
import OrderDetail from 'components/order/detail'
import EditAddress from 'components/address/distpicker'
import Address from 'components/address/address'
import Order from 'components/order/list'

// import Goods from 'components/goods/goods'
// import Ratings from 'components/ratings/ratings'
// import Seller from 'components/seller/seller'
// import My from 'components/my/my'
Vue.config.productionTip = false
Vue.use(VueRouter)

const routes = [{
  path: '/order/:orderId',
  component: OrderDetail
}, {
  path: '/editAddress',
  component: EditAddress
}, {
  path: '/address',
  component: Address
}, {
  path: '/order',
  component: Order
}]

const router = new VueRouter({
  routes: routes
})

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
